" helper functions for zip all dirs returned from ls -l {{{1
function! ZipDirFunction()
  " wrapping is evil
  set nowrap
  " remove everything the dir lines
  v/^d/d
  " remove excessive ls information
  g/./normal 8daW
  " prepend zip command and the left quotation mark
  g/./normal Izip -r "
  " complete the right quotation mark and leave a space
  g/./normal A" jl
  " copy around quotation mark
  g/./normal f"ya"$p
  " explicitly set destination zip file name
  g/./normal f"lt"a.zip
  " also clear junk
  g/./normal $hya"Icd zp;cj;cd ..;
  " output
  write! /tmp/vim-gen-zipdir.fish
  " quit
  q!
endfunction
